
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link type="text/css" rel="stylesheet" href="/static/css/style.css" />
    <script type="text/javascript" src="/static/scripts/function.js"></script>
    <script type="text/javascript" src="/static/jquery3.6.0.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#exit").click(function () {
                let msg="是否确定退出登录？？";
                if(confirm(msg)){
                    return true;
                }else {
                    return false;
                }
            })
        })
    </script>
</head>
<body>
<div id="header" class="wrap">
    <div id="logo"><img src="http://localhost/images/qdn_log.jpg" style="width: 120px;height: 60px" /></div>
    <div style="width: 900px;height: 60px"><font color=#9A0F0A style="
                        width: 960px;
                        text-align: center;
                        height: 60px;
                        display: block;
                        line-height: 50px;
                        font-size: 22px;
                        font-weight: bold;
                        font-family: 微软雅黑;
                        padding-bottom: 20px;"
    >黔东南民族文化展示平台</font></div>
    <div class="help">
        <span>
             <a href="selectByCustomerId?id=${customerSession.id}"> ${customerSession.customerName}<c:if test="${customerSession.customerSex==0}">先生</c:if><c:if test="${customerSession.customerSex==1}">女士</c:if></a>
        </span>
<%--        <a href="queryShopAndProduct" class="shopping">购物车</a>--%>
<%--        <a href="findOrderByCustomerId?cusId=${cus.id}">我的订单</a>--%>
        <a href="index.jsp" id="exit">退出登录</a>
<%--        <a href="guestbook.html">留言</a></div>--%>
</div>
<%@include file="head1.jsp"%>
<%--<div id="childNav">--%>
<%--    <div class="wrap">--%>
<%--        <ul class="clearfix">--%>
<%--            <li class="current"><a href="showSome">首页</a></li>--%>
<%--            <c:forEach items="${category}" var="cat">--%>
<%--                <li><a href="#">${cat.name}</a></li>--%>
<%--            </c:forEach>--%>
<%--        </ul>--%>
<%--    </div>--%>
<%--</div>--%>
<div id="main" class="wrap">
    <%@include file="left1.jsp"%>
    <div class="main">
        <div class="price-off">
            <h2>展示>>></h2>
            <ul class="product clearfix">
                <c:forEach items="${showSome}" var="sm">
                    <li>
                        <dl>
                            <dt><a href="findShowById?showId=${sm.id}" target="_blank"><img src="http://localhost/${sm.showPhotoUrl}" /></a></dt>
                            <dd class="title"><a href="findShowById?showId=${sm.id}" target="_blank">${sm.showName}</a></dd>
<%--                            <dd class="remark">${sm.remark}</dd>--%>
                        </dl>
                    </li>
                </c:forEach>
                <div>
                    每页<select name="size" id="spageSize">
                    <option value="1" <c:if test="${showAllPage.size==1}">selected</c:if>>1</option>
                    <option value="2" <c:if test="${showAllPage.size==2}">selected</c:if>>2</option>
                    <option value="3"<c:if test="${showAllPage.size==3}">selected</c:if>>3</option>
                </select>行&nbsp;&nbsp;&nbsp;
                    <a href="javascript:goToPage(1)">首页</a>&nbsp;&nbsp;&nbsp;
                    <c:if test="${showAllPage.hasPrevious()}">
                        <a href="javascript:goToPage(${showAllPage.current-1})">上一页</a>&nbsp;&nbsp;&nbsp;
                    </c:if>
                    <c:if test="${!showAllPage.hasPrevious()}">
                        <a href="javascript:alert('已经是第一页了！')">上一页</a>&nbsp;&nbsp;&nbsp;
                    </c:if>
                    <c:if test="${showAllPage.hasNext()}">
                        <a href="javascript:goToPage(${showAllPage.current+1})">下一页</a>&nbsp;&nbsp;&nbsp;
                    </c:if>
                    <c:if test="${!showAllPage.hasNext()}">
                        <a href="javascript:alert('已经是最后一页了！')">下一页</a>&nbsp;&nbsp;&nbsp;
                    </c:if>
                    <a href="javascript:goToPage(${showAllPage.pages})">末页</a>
                    第${showAllPage.current}页/共${showAllPage.pages}页
                </div>
            </ul>
<%--            <div align="right">--%>
<%--                <a href="findAllProduct">查看更多>>></a>--%>
<%--            </div>--%>
        </div>

        <div class="side">
            <div class="spacer"></div>
            <div class="news-list">
                <h4>新闻动态</h4>
                <ul>
                    <marquee direction="up" behavior="scroll" onMouseOut="this.start()" onMouseOver="this.stop()" scrollamount="5">
                    <c:forEach items="${newsList}" var="news">
                        <li>
                            <a href="/manage/selectNewsById?id=${news.id}" target="_blank">${news.title}</a><br/><a href="/manage/selectNewsById?id=${news.id}"></a>
                        </li>
                    </c:forEach>
                    </marquee>
                </ul>
            </div>
        </div>
        <div class="spacer clear"></div>
    <div class="clear"></div>
</div>
<div id="footer">
</div>
</body>
<script type="text/javascript">
</script>
</html>

